﻿@model LCMS_MVC.Models.LORegistrationModel

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("Index", "LORegistration", FormMethod.Post)) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>LO Registration Form</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Description)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.KeywordSubject)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.KeywordSubject)
            @Html.ValidationMessageFor(model => model.KeywordSubject)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Language)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Language)
            @Html.ValidationMessageFor(model => model.Language)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CreatorFirstName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CreatorFirstName)
            @Html.ValidationMessageFor(model => model.CreatorFirstName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CreatorLastName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CreatorLastName)
            @Html.ValidationMessageFor(model => model.CreatorLastName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CreatorEmail)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CreatorEmail)
            @Html.ValidationMessageFor(model => model.CreatorEmail)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Version)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Version)
            @Html.ValidationMessageFor(model => model.Version)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Status)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Status)
            @Html.ValidationMessageFor(model => model.Status)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Date)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Date)
            @Html.ValidationMessageFor(model => model.Date)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Provenance)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Provenance)
            @Html.ValidationMessageFor(model => model.Provenance)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Contributor)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Contributor)
            @Html.ValidationMessageFor(model => model.Contributor)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Rightsholder)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Rightsholder)
            @Html.ValidationMessageFor(model => model.Rightsholder)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Cost)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Cost)
            @Html.ValidationMessageFor(model => model.Cost)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CopyrightOtherRestrictions)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CopyrightOtherRestrictions)
            @Html.ValidationMessageFor(model => model.CopyrightOtherRestrictions)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RightsDescription)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RightsDescription)
            @Html.ValidationMessageFor(model => model.RightsDescription)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Format)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Format)
            @Html.ValidationMessageFor(model => model.Format)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Size)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Size)
            @Html.ValidationMessageFor(model => model.Size)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Location)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Location)
            @Html.ValidationMessageFor(model => model.Location)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.InstallationRemark)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.InstallationRemark)
            @Html.ValidationMessageFor(model => model.InstallationRemark)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PlatformRequirements)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PlatformRequirements)
            @Html.ValidationMessageFor(model => model.PlatformRequirements)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Duration)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Duration)
            @Html.ValidationMessageFor(model => model.Duration)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Relation)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Relation)
            @Html.ValidationMessageFor(model => model.Relation)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.RelationDescription)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RelationDescription)
            @Html.ValidationMessageFor(model => model.RelationDescription)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Source)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Source)
            @Html.ValidationMessageFor(model => model.Source)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LearningResourceType)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LearningResourceType)
            @Html.ValidationMessageFor(model => model.LearningResourceType)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Difficulty)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Difficulty)
            @Html.ValidationMessageFor(model => model.Difficulty)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.TypicalLearningTime)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.TypicalLearningTime)
            @Html.ValidationMessageFor(model => model.TypicalLearningTime)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Audience)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Audience)
            @Html.ValidationMessageFor(model => model.Audience)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NoOfPages)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NoOfPages)
            @Html.ValidationMessageFor(model => model.NoOfPages)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
